package com.example.libraryms.model.base;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Cauli
 * @date 2023/7/31 13:20
 * @description 传输类基类
 */
@Data
public class BaseDTO implements Serializable {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private DateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", hidden = true)
    private DateTime updateTime;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）", hidden = true)
    private Integer deleted;
}
